<!-- 
th { font-size:12pt; 
line-height:14pt; 
font-family:Helvetica,Arial; 
} 
//--> 
</style> 
<?
$year= 2011; 
print("<table border='0' width='200'>"); 
for($month=1;$month<13;$month++) { 
printf("<tr><th colspan='7'>%s</th></tr>",date("F",mktime(0,0,0,$month,1,$year))); 
$fdom=date("w",mktime(0,0,0,$month,1,$year)); 
$ct=0; 
for($row=1;$row<7;$row++) 
{ 

for($week=1;$week<8;$week++) 
{ 
$ct++; 
$value=mktime(0,0,0,$month,$ct-$fdom,$year); 
if (date("m",$value)==$month) 
{ 
echo "<th>".date("D",$value)."</th><br>"; 
echo "<th>".date("d",$value)."</th>"; 
} 
else { print("<td></td>"); } 
} 
 
} 
print("<tr><td colspan='7'><br><br></td></tr>"); 
} 
print("</table>"); 
?> 
